package com.yixing.demo.mapper;

import com.yixing.demo.model.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MusicMapper {
    Music inspectMusicIsExist(String title);
    Integer insertMusic(String title, String singer, String time, String url, Integer userId);
    Music inspectMusicIsExistById(Integer id);

    Integer deleteMusicById(Integer id);
    List<Music> seekMusicByName(String title);

    List<Music> seekMusicByNoName();
}
